﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cms/Admin.Master" AutoEventWireup="true"
    CodeBehind="MenuMan.aspx.cs" Inherits="Aij1.Cms.MenuMan" %>

<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Xpo.v13.1.Web, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Xpo" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="CT2" ContentPlaceHolderID="PH" runat="server">
    <div style="float: right">
        <dx:ASPxButton ID="BtnAddTop" runat="server" AutoPostBack="False" Text="新增顶级">
            <ClientSideEvents Click="function(s, e) {	tree.StartEditNewNode();}" />
        </dx:ASPxButton>
    </div>
    <dx:ASPxTreeList ID="ASPxTreeList1" runat="server" AutoGenerateColumns="False" ClientInstanceName="tree"
        DataSourceID="XpoDataSource1" KeyFieldName="Oid" ParentFieldName="ParentId!Key"
        Width="100%" OnNodeValidating="ASPxTreeList1_NodeValidating">
        <Columns>
            <dx:TreeListTextColumn FieldName="Oid" VisibleIndex="0" Caption="编号" Name="colOid">
            </dx:TreeListTextColumn>
            <dx:TreeListTextColumn FieldName="Title" VisibleIndex="0" Caption="标题" Name="colTitle">
            </dx:TreeListTextColumn>
            <dx:TreeListTextColumn FieldName="Keyword" VisibleIndex="1" Caption="关键字" Name="colKeyword">
            </dx:TreeListTextColumn>
            <dx:TreeListTextColumn Caption="网页地址" FieldName="Url" Name="colUrl" VisibleIndex="2"
                Width="50%">
            </dx:TreeListTextColumn>
            <dx:TreeListComboBoxColumn Caption="显示位置" FieldName="Pos" Name="colPos" VisibleIndex="3">
            </dx:TreeListComboBoxColumn>
            <dx:TreeListTextColumn Caption="排序" FieldName="OrderId" Name="colOrderId" 
                VisibleIndex="5">
            </dx:TreeListTextColumn>
            <dx:TreeListHyperLinkColumn Caption="编辑页面" FieldName="Oid" Name="colEditSpecial"
                VisibleIndex="4">
                <PropertiesHyperLink NavigateUrlFormatString="EditSpecial.aspx?Id={0}" TextFormatString="编辑页面">
                </PropertiesHyperLink>
            </dx:TreeListHyperLinkColumn>
            <dx:TreeListCommandColumn Caption="操作" VisibleIndex="5" Width="100px">
                <EditButton Visible="True" Text="编辑">
                </EditButton>
                <NewButton Visible="True" Text="新增下级">
                </NewButton>
                <DeleteButton Visible="True" Text="删除">
                </DeleteButton>
                <UpdateButton Text="修改">
                </UpdateButton>
                <CancelButton Text="取消">
                </CancelButton>
            </dx:TreeListCommandColumn>
        </Columns>
        <SettingsBehavior AutoExpandAllNodes="True" />
        <SettingsSelection Enabled="True" />
        <SettingsEditing AllowNodeDragDrop="True" AllowRecursiveDelete="True" />
    </dx:ASPxTreeList>
    <dx:XpoDataSource ID="XpoDataSource1" runat="server" 
    DefaultSorting="OrderId">
    </dx:XpoDataSource>
</asp:Content>
